package com.atguigu.gulimall.order.feign;

import com.atguigu.gulimall.order.feign.fallback.CartFeignServiceFallback;
import com.atguigu.gulimall.order.vo.OrderItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@FeignClient(value = "gulimall-cart", fallback = CartFeignServiceFallback.class)
public interface CartFeignService {

    @GetMapping("/currentUserCartItems")
    @ResponseBody
    List<OrderItemVo> currentUserCartItems();
}
